package spring_Proxydemo1.Proxydemo2;


//静态代理:直接将目标对象放到代理对象中，然后在目标对象的前后加上一些方法
public class goalStatic {
    private goalImpl target;

    public goalStatic() {
    }

    public goalStatic(goalImpl target) {
        this.target = target;
    }
    public void getProxy(){
        System.out.println("目标方法前，hello");
         target.save();
        System.out.println("目标方法后，hello");

    }
}
